package com.oh.iris.server.handler;

import com.oh.core.entity.MessageEntity;
import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import org.springframework.stereotype.Component;


@ChannelHandler.Sharable
@Component
public class TestLastHandler extends SimpleChannelInboundHandler<MessageEntity> {
    @Override
    protected void channelRead0(ChannelHandlerContext channelHandlerContext, MessageEntity messageEntity) throws Exception {
        System.out.println("执行了 TestLastHandler");
    }
}
